package uniqueEquipment;

import java.awt.Choice;

import main.Equipment;
import main.Unit;

public class GimliAxes extends Equipment {

	public GimliAxes() {
		options = new Choice();
		options.setName("Equipment Options");
		options.add("Two axes");
		options.add("Two-handed Axe");
	}
	
	public void applyOptions () {
		if (options.getSelectedItem().equals("Two-handed Axe")) {
			owner.setBattleDice(owner.getAttacks());
			owner.setWoundBonus(1);
		}
		else if (options.getSelectedItem().equals("Two axes")) {
			owner.setWoundBonus(0);
			owner.setBattleDice(owner.getAttacks() + 1);
		}
	}
	
	public void equipTo(Unit u) {
		this.owner = u;
	}
	
	public String toString() {
		return "GimliAxes";
	}
}
